package com.itheima.d06_innerclass_member;

/**
 * 目标：了解成员内部类
 */
public class Test {
    public static void main(String[] args) {
        //1.创建汽车对象
        Car car = new Car();

        //2.访问汽车对象成员
        car.speed = 150;
        car.run();
        Car.Engine engine = car.new Engine();

        System.out.println("===========");

        //3.完整版：外部类名称.内部类名  对象名称 = new  外部类对象().new 内部类对象();
        Car.Engine engine2 = new Car().new Engine();

        engine2.start();

    }

}
